using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Collections;
using System.Collections.Generic;
using SMS.OnLine.BusinessLogicLayer;
using SMS.OnLine.DataAccessLayer;

/// <summary>
/// Summary description for OrganizationEntry
/// </summary>
namespace SMS.OnLine.BusinessLogicLayer
{
    public class StoreEntry
    {
        private string _StoreId;

        public string StoreId
        {
            get { return _StoreId; }
            set { _StoreId = value; }
        }

        private string _StoreName;

        public string StoreName
        {
            get { return _StoreName; }
            set { _StoreName = value; }
        }

        private string _Area;

        public string Area
        {
            get { return _Area; }
            set { _Area = value; }
        }


        public StoreEntry(string storeId, string storeName,string area)
        {
            _StoreId = storeId;
            _StoreName = storeName;
            _Area = area;
        }

        public bool Save()
        {
            return true;
        }
        public bool Delete()
        {
            return true;
        }

        public static List<StoreEntry> GetAllStoreEntries()
        {
            DataMartDataAccess DALLayer = DataAccessHelper.GetDataMartDataAccess();
            return (DALLayer.GetAllStoreEntries());
        }

        public static List<StoreEntry> GetAllStoreByAreaEntries(string area)
        {
            DataMartDataAccess DALLayer = DataAccessHelper.GetDataMartDataAccess();
            return (DALLayer.GetAllStoreByAreaEntries(area));
        }
    }

    public class AreaEntry
    {
        private string _Area;

        public string Area
        {
            get { return _Area; }
            set { _Area = value; }
        }

        public AreaEntry(string area)
        {
            _Area = area;
        }

        public static List<AreaEntry> GetAllAreaEntries()
        {
            DataMartDataAccess DALLayer = DataAccessHelper.GetDataMartDataAccess();
            return (DALLayer.GetAllAreaEntries());
        }
    }
}